package com.kuizii.demo.core.domain.entity.user;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author nuanyang
 * Email freexiaodong@163.com
 * Created by 2019-06-16 16:32:52
 */
@Data
@ToString
@TableName("sys_user")
public class SysUserEntity {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;


    /**
     * 用户名
     */

    private String userName;


    /**
     * 密码
     */

    private String password;


    /**
     * 用户状态,0-未激活 1-启用,-1禁用
     */

    private Integer userState;


    /**
     * 创建时间
     */

    private LocalDateTime createTime;


    /**
     * 描述
     */

    private String userDesc;


    /**
     * 头像
     */

    private String userImg;


    /**
     * 部门主键
     */

    private String deptId;

    private String email;

    private String mobile;

    /**
     * 归属平台 0.系统 1.票砸 2.窥知
     */
    private Integer accountPlatform;

    /**
     * 帐号类型 1.系统帐号 2.三方
     */
    private Integer accountType;

    private Boolean emailVerified;

    private Boolean mobileVerified;

    private BigDecimal score=BigDecimal.valueOf(0);

    @Version
    private int version;

}
